package com.example.demo.entity;

import java.util.List;
import java.util.Map;

public interface AccountMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Account record);

    int insertSelective(Account record);

    Account selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Account record);

    int updateByPrimaryKey(Account record);

    String select1(int year, int month, int kind, int mainId);

    String select2(int year, int month, int kind, int mainId);


    List<Map<String, Object>> select3(int year, int month, int kind, int mainId);

    int OutAdd(Account account);

    List<Map<String, Object>> select4(int year, int month, int kind, int mainId);

    List<Map<String, Object>> selectDay(int year, int month, int day, int mainId);

    int Delete(int id);

    List<Map<String, Object>> selectYear(int year, int kind, int mainId);

    List<Map<String, Object>> selectAll(int year, int month, int mainId);

    float SelectMaxDay(int year, int month,int kind, int mainId);

    float SelectAverageDay(int year, int month,int kind, int mainId);

    int UpdateMoney(int ids, float moneys);
}